package com.zmj.sy.mom.srv.aps.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zmj.sy.mom.srv.aps.bean.entity.order.ApsOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ApsOrderMapper extends SyMapper<ApsOrder> {
    @Select("delete from tb_aps_order where order_id = #{id}")
    void deleteOrderId(@Param("id") Integer id);

    @Select(" select  order_id orderId, count(order_id) seq " +
            " from tb_aps_order  " +
            " ${ew.customSqlSegment}" )
    List<ApsOrder> selectPack(@Param(Constants.WRAPPER) QueryWrapper<ApsOrder> wrapper);
}
